"""
列表生产式
"""
# 1. 列表生产式
list = [i for i in range(1, 20)]
# print(list)
list = [10 for i in range(1, 20)]
# print(list)
list = [i for i in range(20) if i%2 == 0]
# print(list)
list = [(i, j) for i in range(3) for j in range(3)]
# print(list)
list = [(i, j, k) for i in range(3) for j in range(3) for k in range(3)]
# print(list)
